<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />  
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
	<title>测试界面</title>  
    <#include "/ftl/systemHead.ftl">
    <script type="text/javascript">
	    $(function(){
	    		$("#buttonDemo").click(function(){
	    		   alert("${app.cdn_url}"+"${app['cdn.url']}")
					alert("按钮点击");
				});
				//// 用户信息添加
				$("#addUser").click(function(){
				 var url="http://127.0.0.1:8083/backStage/userManager/addUser.do?userCode=12&userName=用户";
				 //var url="http://127.0.0.1:8083/backStage/systemUserManagerController/addSystemUser.do?userCode=12&userName=用户";
				     url+="&userType=类别&userNature=性质&lawType=22&lawNo=444&mobileTel=123";
				     url+="&officeTel=222&companyId=2&email=2&salaryDate=2017-01-01&createDate=2017-01-01";
				     url+="&nationality=中国&remark=备注&accountNo=22&keyValidate=0&validateResult=0";
				     url+="&fundStatus=0&password=122";
				     url+="&bank.bankId=2&bankNum=2&bankUserName=2&accountType=2";
					$.ajax({
			 		  url:url,
						  type: "POST",					  
						  success:  function (result) {	
							  alert("正确："+result);
					      	},
				 		  error:function(result){
				 			 alert("错误："+result);
					      	},
					});	
				});
				///用户信息编辑
				$("#updateUser").click(function(){
				/// var url="http://127.0.0.1:8080/backStage/userManagerController/updateUser.do?userCode=12&userName=用户_";
				var url="http://127.0.0.1:8080/backStage/systemUserManagerController/updateSystemUser.do?userCode=12&userName=用户_";
				 
				     url+="&userType=类别_&userNature=性质_&lawType=22_&lawNo=44224&mobileTel=12322";
				     url+="&officeTel=22222&companyId=222&email=222&salaryDate=2017-01-02&createDate=2017-01-02";
				     url+="&nationality=中国_&remark=备注_&accountNo=2222&keyValidate=1&validateResult=1";
				     url+="&fundStatus=1&password=12222&id=1";
					$.ajax({
			 		  url:url,
						  type: "POST",					  
						  success:  function (result) {	
							  alert("正确："+result);
					      	},
				 		  error:function(result){
				 			 alert("错误："+result);
					      	},
					});	
				});
				///用户信息获取
				$("#getUserById").click(function(){
				 var url="http://127.0.0.1:8080/backStage/systemUserManagerController/getSystemUserById.do?id=1";
			 		  	$("#mainframe").attr("src",url);
				});
				//id和密码获取用户 
				$("#getUserByIdAndPassword").click(function(){
				 var url="http://127.0.0.1:8080/backStage/systemUserManagerController/getSystemUserByCodeAndPassword.do?userCode=12&password=122";
			 		  	$("#mainframe").attr("src",url);
				});
				//测试
				$("#test").click(function(){
				 var url="http://127.0.0.1:8080/backStage/userRelation/update.do";
				     url+="?userId=1&relationType=ROLE&roleIds=3,4"
			 		  $("#mainframe").attr("src",url);
				});
		});
	</script>
</head>
<body>
<form id="loginForm" method="post" target="_self"name="loginForm">
	<input type="button" value=""/>
	<input type="button" id="buttonDemo" name="buttonDemo" value="实例按钮" style="width:120px;height:40px;"/>
 	<input type="button" id="addUser" name="addUser" value="用户信息添加" style="width:120px;height:40px;"/>
	<input type="button" id="updateUser" name="updateUser" value="用户信息编辑" style="width:120px;height:40px;"/>
	<input type="button" id="getUserById" name="getUserById" value="用户获取" style="width:120px;height:40px;"/>
	<input type="button" id="getUserByIdAndPassword" name="getUserByIdAndPassword" value="密码获取用户" style="width:120px;height:40px;"/>
	:${sessionScope}:
	<input type="button" id="test" name="test" value="测试按钮" style="width:120px;height:40px;"/>
	
	
	<table>
	<#if categoryList != null>
	  <#if (categoryList?size>0)>
             <#list categoryList as obj>
                 <tr align="center" class="bg">
                     
                  </tr>
              </#list>                  
          </#if>
      </#if>
       </table>
       <iframe  id="mainframe" name="mainframe" 
       src="/misc-admin/html/index.html" scrolling="auto" frameborder="0" style="border:0px;overflow:hidden;width:100%;height:100%;"></iframe>
       http://127.0.0.1:8080/misc-admin/html/index.html
       失败的界面，失败的地方
       
</form>
</body>
</html>